﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RoleUserList.aspx.cs" Inherits="UserManagement_RoleUserList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link href="../css/Style.css" rel="stylesheet" type="text/css" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户列表</title>
    <style type="text/css">
        .inputbuttondiv
        {
            width: 280px;
        }
    </style>
    <link href="../Includes/index.css" type="text/css" rel="stylesheet" />
    <link href="../Includes/MasterPage.css" type="text/css" rel="stylesheet" />
    <link href="../Includes/xtree.css" type="text/css" rel="stylesheet" />
    <link href="../css/MyCss.css" type="text/css" rel="stylesheet" />
    <link href="../css/Style.css" rel="stylesheet" type="text/css" />
</head>
<script src="../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script src="../Includes/jquery-1.4.1.js" type="text/javascript"></script>
<script src="../Includes/MyJScript.js" type="text/javascript"></script>
 <script type="text/javascript">
                function checkall(cb){
                var cbs=document.getElementsByTagName("input");
                for(var i=0;i<cbs.length;i++ )
                {
                 if(cbs[i].type=="checkbox")
                 {
                  cbs[i].checked=cb.checked;
                 }
                
                
                }
               }

    </script>

<body> 
    <form id="roleuserlist" runat="server">
     <div class="inputbuttondiv">
       
         <asp:Button class="inputbutton" ID="handle" runat="server" Text="确定" 
             onclick="handle_Click" />
        <asp:Button class="inputbutton" ID="cancel" runat="server"  Text="取消" 
             onclick="cancel_Click" />
    &nbsp;</div>
    <div style="width: 281px">
    
                <asp:Panel ID="userListPanel" runat="server" ScrollBars="Vertical" Width="280px" Height="460px">
               
        <asp:GridView ID="UserListGridView" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" ForeColor="#333333" GridLines="None" DataKeyNames="userId" 
            Width="255px" onrowdatabound="UserListGridView_RowDataBound">
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:CheckBox ID="selectAllCheckBox" runat="server" Text="全选"
                        onclick="checkall(this)" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="userSecCheckBox" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="userid" HeaderText="用户代码" />
                <asp:BoundField DataField="username" HeaderText="用户名称" />
                
            </Columns>
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#999999" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
     </asp:Panel>
    </div>
    </form>
</body>
</html>
